package org.example.model;

/**
 * @BelongsProject: Dynamic-relationship-binding
 * @BelongsPackage: org.example.model
 * @Author: dengxiyan
 * @CreateTime: 2025/07/04  10:50
 * @Description: TODO
 * @Version: 1.0
 */
import javax.persistence.Entity;
import javax.persistence.Transient;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class Course extends BaseEntity {
    private String title;
    private String code;
    @Transient
    private List<Student> students;
    @Transient
    private Teacher instructor;
}
